extends Control

onready var wi : WeaponInfo = $Panel/VBoxContainer/HBoxContainer/WeaponInfo

var featured_unit : Unit setget set_featured_unit

func set_featured_unit(u : Unit):
	featured_unit = u
	$Panel/VBoxContainer/UnitNameLabel.text = u.unit_name
	wi.set_featured_weapon(u.weapon_instance)
	$Panel/VBoxContainer/HBoxContainer/TextureRect.texture = u.get_sprite()
